package com.ar4j.handler;

import java.lang.reflect.Method;

import com.ar4j.ActiveRecordContext;
import com.ar4j.ActiveRecordMetadata;

import net.sf.cglib.proxy.MethodProxy;

/**
 * A simple handler that delegates the call to the base class
 */
public class NoOpMethodHandler implements IMethodHandler {
  
  @Override
  public Object intercept(ActiveRecordMetadata metadata, ActiveRecordContext context, Object target, Method method, Object[] args, MethodProxy proxy) 
    throws Throwable {
    
    return proxy.invokeSuper(target, args);
  }

}
